package com.medical.admin.cost.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medical.admin.cost.entity.Department;
import com.medical.admin.hospital.common.vo.DepartmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper extends BaseMapper<Department> {

    DepartmentVo selectByParentId(@Param("parentId") Long parentId);

    List selectParent();

    Department findByDepartmentName(String departmentName);

    List<DepartmentVo> pageDepartments(@Param("departmentName") String departmentName,
    @Param("pageNum") int pageNum,@Param("pageSize") int pageSize);

    com.medical.admin.hospital.entity.Department findByParentName(String parentName);
}